From: Alastair Tse Date: Fri, 3 Nov 2006 10:41:20 +0000 (+0000) Subject: [XEND] Handle permission denied when calling xc.domain_getinfo X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/%22bookmarks://%22Dat/%22http:/www.example.com/cgi/%22https:/%22bookmarks:/%22Dat?a=commitdiff_plain;h=1974ebc7dd4c7d703b86b99e6210cb0f9b8ba367;p=xen.git [XEND] Handle permission denied when calling xc.domain_getinfo Signed-off-by: Alastair Tse --- diff --git a/tools/python/xen/xend/XendDomain.py b/tools/python/xen/xend/XendDomain.py index 34f5ab0558..2015ca7c4b 100644 --- a/tools/python/xen/xend/XendDomain.py +++ b/tools/python/xen/xend/XendDomain.py @@ -328,7 +328,11 @@ class XendDomain: @rtype: list of dicts @return: A list of dicts representing the running domains. """ - return xc.domain_getinfo() + try: + return xc.domain_getinfo() + except RuntimeError, e: + log.exception("Unable to get domain information.") + return {} def _setDom0CPUCount(self): """Sets the number of VCPUs dom0 has. Retreived from the diff --git a/tools/xm-test/ramdisk/skel/etc/init.d/rcS b/tools/xm-test/ramdisk/skel/etc/init.d/rcS old mode 100644 new mode 100755